import request from '@/utils/request'

// 查询项目回款列表
export function listCompanyProjectMoneyback(query) {
  return request({
    url: '/moneyback/companyProjectMoneyback/list',
    method: 'get',
    params: query
  })
}

// 查询项目回款详细
export function getCompanyProjectMoneyback(id) {
  return request({
    url: '/moneyback/companyProjectMoneyback/' + id,
    method: 'get'
  })
}

// 保存项目回款
export function saveCompanyProjectMoneyback(data) {
  return request({
    url: '/moneyback/companyProjectMoneyback/save',
    method: 'post',
    data: data
  })
}

// 删除项目回款
export function delCompanyProjectMoneyback(id) {
  return request({
    url: '/moneyback/companyProjectMoneyback/' + id,
    method: 'delete'
  })
}

// 导出项目回款
export function exportCompanyProjectMoneyback(query) {
  return request({
    url: '/moneyback/companyProjectMoneyback/export',
    method: 'get',
    params: query
  })
}
